package com.chixing.day04_oop;

public class TestComputer {
    public static void main(String[] args) {
        Cpu cpu1 = new Cpu();
        cpu1.setCpuId(1001);
        cpu1.setCpuType("i5-9300H");
        cpu1.setCpuName("英特尔");
        System.out.println(cpu1.toString());
        Cpu cpu2 = new Cpu(1002,"i7-9500","英特尔");
        System.out.println(cpu2.toString());

        VideoCard videoCard1 = new VideoCard();
        videoCard1.setVcId(2001);
        videoCard1.setVcType("GTX1650");
        videoCard1.setVcName("NVIDIA");
        System.out.println(videoCard1.toString());
        VideoCard videoCar2 = new VideoCard(2002,"3660Ti","NVIDIA");
        System.out.println(videoCar2.toString());

        MainBoard mainBoard1 = new MainBoard(cpu1,videoCard1);
        System.out.println(mainBoard1.toString());

        Computer computer1 = new Computer(mainBoard1);
        System.out.println(computer1.toString());
    }
}
